/-app ...
/-app/boot
boot.d.ts
boot.js
boot.ts
/-app/layout
ApplicationLayout.ts
/-app/typings ...
raphael.d.ts
pe.html
/-app1
/-core
/-headers
/-io
BufferReader.ts
/-managed
/-typings
/-unmanaged
pe.ts
293
 
1
// Type definitions for Raphael 2.1
2
// Project: http://raphaeljs.com
3
// Definitions by: https://github.com/CheCoxshall
4
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
5
6
7
interface BoundingBox {
8
  x: number;
9
  y: number;
10
  x2: number;
11
  y2: number;
12
  width: number;
13
  height: number;
14
}
15
16
interface RaphaelAnimation {
17
  delay(delay: number): RaphaelAnimation;
18
  repeat(repeat: number): RaphaelAnimation;
19
}
20
21
interface RaphaelFont {
22
23
}
24
25
interface RaphaelElement {
26
  animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement;
27
  animate(animation: RaphaelAnimation): RaphaelElement;
28
  animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement;
29
  animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement;
30
  attr(attrName: string, value: any): RaphaelElement;
31
  attr(params: any): RaphaelElement;
32
  attr(attrName: string): any;
33
  attr(attrNames: string[]): any[];
34
  click(handler: Function): RaphaelElement;
35
  clone(): RaphaelElement;
36
  data(key: string): any;
37
  data(key: string, value: any): RaphaelElement;
38
  dblclick(handler: Function): RaphaelElement;
39
  drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) => {}, onstart: (x: number, y: number, event: DragEvent) => {}, onend: (DragEvent: any) => {}, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement;
40
  getBBox(isWithoutTransform?: boolean): BoundingBox;
41
  glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;
42
  hide(): RaphaelElement;
43
  hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement;
44
  id: string;
45
  insertAfter(): RaphaelElement;
46
  insertBefore(): RaphaelElement;
47
  isPointInside(x: number, y: number): boolean;
48
  isVisible(): boolean;
49
  matrix: RaphaelMatrix;
50
  mousedown(handler: Function): RaphaelElement;
51
  mousemove(handler: Function): RaphaelElement;
52
  mouseout(handler: Function): RaphaelElement;
53
  mouseover(handler: Function): RaphaelElement;
54
  mouseup(handler: Function): RaphaelElement;
55
  next: RaphaelElement;
56
  node: SVGElement;
57
  onDragOver(f: Function): RaphaelElement;
58
  paper: RaphaelPaper;
59
  pause(anim?: RaphaelAnimation): RaphaelElement;
60
  prev: RaphaelElement;
61
  raphael: RaphaelStatic;
62
  remove(): void;
0:0